<?php use_helper('Date') ?>
<?php use_helper('Text') ?>
<?php slot('title', "最新资讯分类 - ") ?>
<?php slot('area', "{$area}赛区") ?>
<!--Content-->
<div class="artlist_main">
   <div class="artlist_left">
      <div class="artlist_left_nav">当前位置：<?php echo $category?></div>
      <div class="artlist_left_tt">
         <ul>
		 <?php foreach ($articles as $article): ?>
            <li><span><?php echo format_date($article->getCreatedAt(), 'y/M/d'); ?></span><a href="<?php echo url_for('@article_show?id=' . $article->getId()) ?>"><?php echo $article->getTitle() ?></a></li>
         <?php endforeach ?> 
         </ul>
      </div>
      <div class="artlist_left_tt_pagesize">
        <?php include_partial('articleCatPager/pager', array(
          'pager' => $pager,
		  'catid' =>$catid,
          'route' => 'article_category'
        )) ?>
      </div>
   </div>
   
   <div class="artlis_right">
      <div class="artlist_right_1">
         <div class="artlist_title">报道关注</div>
         <div class="artlist_cont_main">
                      <?php if (count($media)): ?>
            <ul class="list-1">
              <?php foreach ($media as $article): ?>
                <li>
                  <a href="<?php echo url_for('@article_show?id=' . $article->getId()) ?>">
                    <?php echo truncate_text($article, 20, '..') ?></a>
                </li>
              <?php endforeach ?>
            </ul>
          <?php endif ?>
             <div class="clears"></div>
         </div>
      </div>
      <div class="artlist_right_2">
         <span><a href="<?php echo url_for('@article_category?catid=2') ?>" style="color:#e71e90;">更多 >></a></span>
         <?php if (count($latest)): ?>
            <ul class="list-1">
              <?php foreach ($latest as $article): ?>
                <li>
                  <a href="<?php echo url_for('@article_show?id=' . $article->getId()) ?>" title="<?php echo $article ?>">
                    <?php echo truncate_text($article, 18, '..') ?></a>
                </li>
              <?php endforeach ?>
            </ul>
          <?php endif ?>
      </div>
   </div>
   
   
   <div class="clears"></div>
</div>
